package com.alvin.mobi.domain;

/**
 * 
 * Based qrcode type enum class.
 * @author <a href="mailto:rex2.mj@gmail.com">Leo Meng</a>
 * @date $Date: Feb 22, 2013 $
 */
public enum QrCodeType {
	
	QR_GOODS("\u5546\u54c1\u4e8c\u7ef4\u7801"),
	QR_BOX("\u5546\u54c1\u7bb1\u7801"); 

	private String displayName;

	QrCodeType(String displayName) {
		this.displayName = displayName;
	}

	public String getName() {
		return this.name();
	}

	public static QrCodeType enumFor(String value) {
		try {
			return QrCodeType.valueOf(value);
		} catch (Exception e) {
			return null;
		}
	}
	public String getDisplayName(){
		return this.displayName;
	}
}
